import request from './request'

/**
 * 分页查询后台菜单
 */
export const APIMenuList = (params: APIMenuListParams, parentId?: number): RES<APIMenuListModel> => request.get(`/menu/list/${parentId}`, { params })
/**
 * 修改菜单显示状态
 */
export const APIMenuUpdateHidden = (params: { hidden: number }, id: number): RES<number> => request.post(`/menu/updateHidden/${id}`, undefined, { params })
